'''
加载 word 文档
1.创建加载器（传入Word文件路径）Docx2txtLoader
2.加载文档返回List[Document]
3.查看文档结果信息每个文档有metadata描述性数据和page_content内
'''
from langchain_community.document_loaders import Docx2txtLoader

loader = Docx2txtLoader("/root/project/Code/sshcode/rag/data/curry.docx")
docs = loader.load()

print(docs)
print(len(docs))
print(docs[0].metadata)
print(docs[0].page_content)